Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/escape-html/../querystring/../@protobufjs/../once/../wrap-ansi/../statuses/../libphonenumber-js/build/findNumbers
الملفات الموجودة في هذا الـ Path:
.
..
LRUCache.js
LRUCache.js.map
Leniency.js
Leniency.js.map
Leniency.test.js
Leniency.test.js.map
RegExpCache.js
RegExpCache.js.map
isValidCandidate.js
isValidCandidate.js.map
isValidPreCandidate.js
isValidPreCandidate.js.map
matchPhoneNumberStringAgainstPhoneNumber.js
matchPhoneNumberStringAgainstPhoneNumber.js.map
parsePreCandidate.js
parsePreCandidate.js.map
utf-8.js
utf-8.js.map
util.js
util.js.map
util.test.js
util.test.js.map

مشاهدة ملف: parsePreCandidate.js.map

{"version":3,"file":"parsePreCandidate.js","names":["SECOND_NUMBER_START_PATTERN","parsePreCandidate","candidate","trimAfterFirstMatch"],"sources":["../../source/findNumbers/parsePreCandidate.js"],"sourcesContent":["import { trimAfterFirstMatch } from './util.js'\r\n\r\n// Regular expression of characters typically used to start a second phone number for the purposes\r\n// of parsing. This allows us to strip off parts of the number that are actually the start of\r\n// another number, such as for: (530) 583-6985 x302/x2303 -> the second extension here makes this\r\n// actually two phone numbers, (530) 583-6985 x302 and (530) 583-6985 x2303. We remove the second\r\n// extension so that the first number is parsed correctly.\r\n//\r\n// Matches a slash (\\ or /) followed by a space followed by an `x`.\r\n//\r\nconst SECOND_NUMBER_START_PATTERN = /[\\\\/] *x/\r\n\r\nexport default function parsePreCandidate(candidate)\r\n{\r\n\t// Check for extra numbers at the end.\r\n\t// TODO: This is the place to start when trying to support extraction of multiple phone number\r\n\t// from split notations (+41 79 123 45 67 / 68).\r\n\treturn trimAfterFirstMatch(SECOND_NUMBER_START_PATTERN, candidate)\r\n}"],"mappings":";;;;;;;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,2BAA2B,GAAG,UAApC;;AAEe,SAASC,iBAAT,CAA2BC,SAA3B,EACf;EACC;EACA;EACA;EACA,OAAO,IAAAC,yBAAA,EAAoBH,2BAApB,EAAiDE,SAAjD,CAAP;AACA"}