-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maintenance: release 2301 prep - v13.9.0 #2166
Closed
Closed
Changes from 153 commits
Commits
Show all changes
154 commits
Select commit
Hold shift + click to select a range
58cc918
feat: added support for Bengali language
74ea0fb
removed local changes
5e1c0cd
feat(isMobilePhone): add my-MM locale (#1813)
ferdousulhaque 667b0bf
fix(docs): add missing options synthax on isISO8601 validator (#1860)
leonardovillela 9c12b4c
fix(isMobilePhone): update de-DE regex to exclude landline numbers (#…
thomaschaaf f055c11
feat(isMACAddress): add EUI-64 validation (#1865)
WikiRik 42ecd6c
Changes Made in Branch
rak810 9cfd06a
feat: (isMobilePhone) add Cyprus validation
ikerasiotis 7c396cc
feat (isMobilePhone): add Nicaragua validator
ajGingrich 23d94ae
add back trailing space to readme
ajGingrich c194bda
Add Iran phone number
ArashST79 72f5b25
Update isMobilePhone.js
arsalanfiroozi aa07a24
Update validators.js
arsalanfiroozi 843240f
Update README.md
arsalanfiroozi fba9680
Added isMobilePhone valid regex for Afghanistan, Yemen and Western Sa…
Mustafiz04 ff4cdfe
docs: add a security policy (#1861)
tux-tn 2fad8ab
feat(isLicensePlate): add support for Swedish license plates (#1665)
elmaxe 4ee1655
feat(isTaxID): Canadian Social Insurance Number (SIN) validator (#1867)
boonya c1b21a9
chore(maintainers): update list of maintainers (#1887)
ezkemboi c605fe6
fix: option allow_numeric_tld option in isFQDN
BigOsvaap 3d7fd6a
feat(isMobilePhone): Added regex for Bahamas - en-BS
savannahvaith 3cf0f84
refactor: replace deprecated String.prototype.substr()
CommanderRoot a51103c
en-IN and all india locale support for isLicensePlate
NishantJS 3d4d04a
Updated German license plate regex
bennetfabian 290debb
Also removed old regex
bennetfabian 924f3bc
Removed obsolete alternation in German regex
bennetfabian 080f7df
Added more DE license plate tests
bennetfabian 1bb491c
Fix fi-FI mobile phone number format to support 050xxxx numbers
rapaantti 70b028e
fix phone numner validation for ka-GE locale
b415ade
update regexp
cf8dcea
feat(isBase32): Add option for Crockford's base 32 alternative (#1888)
BigOsvaap b039202
feat(isISO6391): add ISO 639-1 validator (#1892)
braaar 495a175
feat(isMobilePhone): add Lesotho, en-LS locale (#1896)
DevilsAutumn 4b8eac5
fix(isMobilePhone): update az-AZ (#1910)
seabeya 066869c
fix(isDataURI): fix dataURI mediaType format (#1916)
temoffey cfcf911
chore: add code scan (#1859)
profnandaa 9055591
Update isMobilePhone.js for pt-BR
jhcaiafa 913d75c
Update validator.js - pt-BR test for isMobilePhone
jhcaiafa 95345ae
fix(isLength) added process to subtract Presentation Sequences charac…
ikkyu-3 2e52efe
refactor(isIP): removed redundant check for IPv4 addresses
UnKnoWn-Consortium d9896ca
feat(isLuhnValid): Expose isLuhnValid independently from isCreditCard
ST-DDT 4098467
test: add tests specifically for isLuhnValid
ST-DDT 61ee147
feat(isMobilePhone): Added regex for Mongolia mn-MN
d88c7b6
fix(Honduras_enhancement): added the correct regex for phone numbers …
ademyan05 4758af0
Merge pull request #1 from rkuma552/feature/add-country-tophone
68ea9c4
Merge pull request #1 from ademyan05/fix/Honduras_enhancement
ademyan05 2a26c9f
feat(Jamaica-addition): added en-JM to isMobilePhone.js
ademyan05 7786bb3
feat(jamaica-addition): cleaned the branch
ademyan05 2280ff1
Revert "fix(Honduras_enhancement): added the correct regex for phone …
ademyan05 d50c860
"fix(Honduras_enhancement): added the correct regex for phone numbers…
ademyan05 61c9a1c
Update validators.js
Dev1lDragon bcac756
Update README.md
Dev1lDragon 73098eb
feat(isMobilePhone): Added regex for Mongolia mn-MN (#1993)
rksp25 47443d1
fix: Modify pattern of pt-Br regex (#1951)
matheusnascgomes 97d992c
fix(isPostalCode): update bosnian, BA locale (#1956)
zlayabekrija 9a0bb35
fix(matches): prevent regex state from breaking following validations…
fedeci 0175670
feat(isMagnetURI): support Bittorrent v2 (#1992)
Rhilip 37cbd5c
fix(docs): missing SK locale isPostalCode (#1957)
tfilo 5d2ff83
do not check if the host is valid if no host is specified
mortbauer 6fb8bb5
feat(isMobilePhone): Added regex for Aruba nl-AW (#1985)
adida948 4767c21
feat(isMobilePhone): Added regex for Benin fr-BJ
2942078
Add Sinhala(si-LK) language support
12c82b9
Merge branch 'master' into feature/add-country-benin
rksp25 f219330
feat(isPassportNumber): add regex for mexico
samilieberman 25c1504
feat(madagascar): regex added for madagascar mg-MG
4bf55e4
Merge pull request #2001 from ShivangiRai1310/feat/madagascar
rubiin d5f8015
Merge pull request #1998 from samilieberman/feat/mexico
rubiin 9f89f3b
Merge pull request #1995 from mortbauer/fix/isURL-empty-host-with-query
rubiin fdbb1ee
Merge pull request #1996 from melkorCBA/master
rubiin c6ecf53
Merge pull request #1983 from ademyan05/master
rubiin 2f26bac
Merge pull request #1942 from CommanderRoot/rm-deprecated-substr
rubiin c57ff39
Merge pull request #1974 from ST-DDT/expose/luhnCheck
rubiin 8f04ca9
Merge pull request #1939 from BigOsvaap/fix-isFQDN-allow_numeric_tld-…
rubiin ceeb7b2
feat: added Papua New Guinea mobile number validation
kai2128 625603d
Merge branch 'master' into feature/add-country-benin
rksp25 ccf4170
Merge pull request #2002 from kai2128/master
rubiin 8233ff1
Merge pull request #1946 from rapaantti/is-mobile-phone-finnish-numbers
rubiin 49c3abe
Merge pull request #1967 from ikkyu-3/master
rubiin 46118dc
Merge pull request #1944 from NishantJS/master
rubiin eaca48e
Merge pull request #1945 from bennetfabian/update/de-licenseplates
rubiin 518a663
Merge pull request #1969 from UnKnoWn-Consortium/refactor-isip
rubiin 4096915
Merge branch 'master' into feature/add-country-benin
rksp25 a17421a
Merge pull request #1997 from rksp25/feature/add-country-benin
rubiin 7b8149b
feat(isMobilePhone): added Antigua and Barbuda mobile number validati…
jiaweilow ed3d8a4
Merge pull request #2004 from jiaweilow/master
rubiin 356f055
Merge branch 'master' into patch-1
rubiin e483f6a
Merge pull request #1964 from jhcaiafa/patch-1
rubiin 374a0b7
Merge branch 'master' into master
rubiin c8c247c
Merge pull request #1924 from arsalanfiroozi/master
rubiin 678e55b
Merge pull request #1952 from avkvak/ka-ge-phone-regex-fix
rubiin 222cacc
Merge branch 'master' into master
rubiin c193fe5
Merge pull request #1922 from ArashST79/master
rubiin afdbd68
Merge branch 'master' into feature/all-country-regex
rubiin 89949e7
Merge pull request #1925 from Mustafiz04/feature/all-country-regex
rubiin a14f4de
Merge branch 'master' into feat/1761-mobile-phone-validation
rubiin aead076
Merge pull request #1940 from savannahvaith/feat/1761-mobile-phone-va…
rubiin f2d7e04
Merge branch 'master' into nicaragua-phone
rubiin edce476
Merge pull request #1909 from ajGingrich/nicaragua-phone
rubiin da1a936
Merge branch 'master' into master
rubiin 3873ebf
Merge pull request #1897 from ikerasiotis/master
rubiin c7c0760
Merge branch 'master' into master
rubiin 35b5ffb
Merge pull request #1678 from rak810/master
rubiin 7832d4a
Merge pull request #1989 from Dev1lDragon/patch-1
rubiin 35fc280
Merge branch 'master' into feat/Jamaica-addition
rubiin 450a2c0
Merge pull request #1986 from ademyan05/feat/Jamaica-addition
rubiin 1bb14e8
feat(isMobilePhone): added Anguilla, en-AI, locale (#2007)
elaine1129 2d70100
Fix broken Validators table at README.md
marcelozarate 86a07ba
Merge pull request #2010 from marcelozarate/patch-1
rubiin e143430
Remove 'Changes made' from README
WikiRik edf445a
feat(isPassportNumber): add passport number of thailand, TH (#1814)
TonPC64 c1d1b48
feat(isEmail): add whitelist host to isEmail validation (#1920)
poor-cooder ee33432
feat(isCreditCard): enhancements (#2008)
brianwhaley 2c785a5
feat(isMobilePhone): added Saint Kitts and Nevis locale, en-KN (#2011)
Eelyneee d698f4f
feat(isAlpha, isAlphanumeric): add japanese locale, ja-JP (#2014)
starcharles 7b47f53
feat(isAlpha, isAlphanumeric): add ko-KR locale (#1965)
Dongkyuuuu 531dc7f
Merge pull request #2024 from WikiRik/patch-1
rubiin 93667bd
chore(CodeQL): update deprecated v1 to v2 (#2150)
pano9000 c19777a
feat(isIdentityCard): add hk-HK locale (#2142)
songyuew 41c7a16
feat(isMobilePhone): add south sudan locale, en-SS (#2084)
cheboi ee81073
fix(isStrongPassword): add £ as symbol (#2148)
sandmule cca678a
fix(isMobilePhone): added extra prefix for ar-KW locale (#2138)
Yazan-KE f394da0
test(validators): remove duplicated test (#2137)
pano9000 394eebf
fix(isPostalCode): fix overly permissive IR regexp (#2136)
pano9000 dcb6cb6
refactor(isBtcAddress): get rid of unnecessary if statement and comme…
pano9000 d8f3a24
fix(isMobilePhone): re-add es-HN fix from #1983 (#2129)
WikiRik a571b3e
fix(isDataURI): fix MIME types with underscores not getting matched …
pano9000 44224d7
fix(isMobilePhone): fix el-GR validation - add missing ranges and cor…
pano9000 8e004e0
added isTime validator (#1479)
francoatmega 7bef722
fix(isPostalCode): fix overly permissive BY regexp (#2134)
pano9000 35b1fc1
refactor: change test files to prepare for #1874 (#2091)
WikiRik f97e8d4
fix(docs): remove duplicated "New Features" section in CHANGELOG (#2118)
pano9000 d25559b
fix(isMobilePhone): fix wrong dv-MV mobile phone matching (issue #210…
pano9000 0586d23
docs: Improve consistency and fix errors in README.md (#2107)
pano9000 8deae54
fix(isLicensePlate): remove duplicate char from character class (#2085)
pedroprado010 c332e5c
fix(isMimeType): Fix MIME Types with underscores not getting matched …
pano9000 d61322c
fix(isMobilePhone): fix 'ro-RO' matching invalid numbers (#2156)
pano9000 f9d49fc
fix(isMobilePhone): fix 'ms-MY' regexp (#2155)
pano9000 c81df18
fix(isMobilePhone): Fix en-BM matching invalid numbers due to missing…
pano9000 b2a999d
fix(isRgbColor): fix validation of rgb(a) ColorPercentage strings (#2…
pano9000 753c29d
feat(isAfter): allow usage of options object (#2075)
WikiRik 6dba289
feat(isISBN): allow usage of options object (#2157)
WikiRik 8604748
feat(isPassportNumber): new locales JM,KZ,LI,NZ
profnandaa 427b035
feat(isLicensePlate): add hu-HU locale (#2165)
profnandaa bde420b
feat(isMobilePhone): add ro-MD locale (#2167)
profnandaa 5bb8c91
feat:(isMobilePhone): add fr-CD, DR Congo locale (#2168)
profnandaa a310168
feat(isLicensePlate): add es-AR locale (#2169)
profnandaa b489355
fix(isEmail): fixed `isFQDN`'s `ignore_max_length` check (#2170)
profnandaa 31a74d5
feat(isPassportNumber): add PH and PK locales (#2172)
profnandaa 58f4b13
feat(isPassportNumber): add regex for AZ locale (#2173)
profnandaa c6f2196
fix(isFloat): fix comma passing as float (#2174)
profnandaa 91c8bd9
Merge pull request #2164 from validatorjs/mcfix/combined-prs
profnandaa a8e0005
fix(isBIC): add `XK` to accepted BIC country codes (#2046)
import-brain d423220
fix: few pre-release fixes
profnandaa 54d330c
13.9.0
profnandaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '38 10 * * 4' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://git.io/codeql-language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ yarn.lock | |
/index.js | ||
validator.js | ||
validator.min.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
In the case of a confirmed security issue, only the current version of validator is guaranteed to be patched. | ||
|
||
## Reporting a Vulnerability | ||
|
||
**Please don't disclose security-related issues publicly.** | ||
|
||
If you discover a vulnerability within validator, please use [huntr.dev disclosure form](https://huntr.dev/bounties/disclose/?target=https://github.com/validatorjs/validator.js). We will try to validate and respond to reports in a reasonable time. if the issue is confirmed, we will create a security advisory and a patch as soon as possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import assertString from './util/assertString'; | ||
import toDate from './toDate'; | ||
|
||
export default function isAfter(str, date = String(new Date())) { | ||
assertString(str); | ||
const comparison = toDate(date); | ||
const original = toDate(str); | ||
export default function isAfter(date, options) { | ||
// For backwards compatibility: | ||
// isAfter(str [, date]), i.e. `options` could be used as argument for the legacy `date` | ||
const comparisonDate = options?.comparisonDate || options || Date().toString(); | ||
|
||
const comparison = toDate(comparisonDate); | ||
const original = toDate(date); | ||
return !!(original && comparison && original > comparison); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
import assertString from './util/assertString'; | ||
|
||
// supports Bech32 addresses | ||
const bech32 = /^(bc1)[a-z0-9]{25,39}$/; | ||
const base58 = /^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/; | ||
|
||
export default function isBtcAddress(str) { | ||
assertString(str); | ||
// check for bech32 | ||
if (str.startsWith('bc1')) { | ||
return bech32.test(str); | ||
} | ||
return base58.test(str); | ||
return bech32.test(str) || base58.test(str); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
import assertString from './util/assertString'; | ||
import isLuhnValid from './isLuhnNumber'; | ||
|
||
const cards = { | ||
amex: /^3[47][0-9]{13}$/, | ||
dinersclub: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/, | ||
discover: /^6(?:011|5[0-9][0-9])[0-9]{12,15}$/, | ||
jcb: /^(?:2131|1800|35\d{3})\d{11}$/, | ||
mastercard: /^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/, // /^[25][1-7][0-9]{14}$/; | ||
unionpay: /^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/, | ||
visa: /^(?:4[0-9]{12})(?:[0-9]{3,6})?$/, | ||
}; | ||
/* eslint-disable max-len */ | ||
const creditCard = /^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/; | ||
const allCards = /^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/; | ||
/* eslint-enable max-len */ | ||
|
||
export default function isCreditCard(str) { | ||
assertString(str); | ||
const sanitized = str.replace(/[- ]+/g, ''); | ||
if (!creditCard.test(sanitized)) { | ||
return false; | ||
} | ||
let sum = 0; | ||
let digit; | ||
let tmpNum; | ||
let shouldDouble; | ||
for (let i = sanitized.length - 1; i >= 0; i--) { | ||
digit = sanitized.substring(i, (i + 1)); | ||
tmpNum = parseInt(digit, 10); | ||
if (shouldDouble) { | ||
tmpNum *= 2; | ||
if (tmpNum >= 10) { | ||
sum += ((tmpNum % 10) + 1); | ||
} else { | ||
sum += tmpNum; | ||
} | ||
} else { | ||
sum += tmpNum; | ||
export default function isCreditCard(card, options = {}) { | ||
assertString(card); | ||
const { provider } = options; | ||
const sanitized = card.replace(/[- ]+/g, ''); | ||
if (provider && provider.toLowerCase() in cards) { | ||
// specific provider in the list | ||
if (!(cards[provider.toLowerCase()].test(sanitized))) { | ||
return false; | ||
} | ||
shouldDouble = !shouldDouble; | ||
} else if (provider && !(provider.toLowerCase() in cards)) { | ||
/* specific provider not in the list */ | ||
throw new Error(`${provider} is not a valid credit card provider.`); | ||
} else if (!(allCards.test(sanitized))) { | ||
// no specific provider | ||
return false; | ||
} | ||
return !!((sum % 10) === 0 ? sanitized : false); | ||
return isLuhnValid(card); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this alternative RegExp is in the comments, but maybe we can look at that in #2117
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like the comment is a more "generalized" version of the final regexp used here.
I would tend to vote to remove the comment, it only causes confusion, but again, this can be part of my refactor #2117
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think removal is the best and also best to do in the refactor