Skip to content

Commit

Permalink
fix argenprop regex collision
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomatiasgomez committed Oct 23, 2024
1 parent 3797cb2 commit 0849776
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connector/browsers/argenprop-listings-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const logger = newLogger('ArgenPropListingsBrowser');

//---------------

const URL_REGEX = /^https:\/\/www\.argenprop\.com\/([\/\w-]*[a-zA-Z0-9])$/;
// (?!.*--) avoids 2 consecutive dashes, to avoid collision with ArgenPropBrowser.URL_REGEX url.
const URL_REGEX = /^https:\/\/www\.argenprop\.com\/(?!.*--)([\/\w-]*)$/;

class ArgenPropListingsBrowser extends ListingsSiteBrowser {

Expand Down

0 comments on commit 0849776

Please sign in to comment.