Skip to content
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

Regex syntax: escape literal \. #7626

Merged
merged 6 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions regexes/bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@
category: 'Feed Reader'
url: 'https://theoldreader.com'

- regex: 'Trackable/0.1'
- regex: 'Trackable/0\.1'
name: 'Chartable'
category: 'Site Monitor'
url: 'https://help.chartable.com/article/34-what-is-the-trackable-analytics-prefix'
Expand Down Expand Up @@ -4311,7 +4311,7 @@
name: 'Plesk International GmbH'
url: 'https://www.plesk.com/'

- regex: 'Who.is'
- regex: 'Who\.is'
name: 'Who.is Bot'
category: 'Crawler'
url: 'https://who.is/'
Expand Down
24 changes: 12 additions & 12 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
default: 'Blink'

# APN Browser
- regex: 'Safari/537.36 (?:Browser|Navegador)'
- regex: 'Safari/537\.36 (?:Browser|Navegador)'
name: 'APN Browser'
version: ''
engine:
Expand Down Expand Up @@ -930,7 +930,7 @@
version: '$1'
engine:
default: 'Blink'
- regex: 'com.tcl.browser'
- regex: 'com\.tcl\.browser'
name: 'BrowseHere'
version: '$1'
engine:
Expand Down Expand Up @@ -1216,7 +1216,7 @@
version: '$1'

# Delta Browser (https://play.google.com/store/apps/details?id=com.airfind.deltabrowser)
- regex: '(?:com.airfind.deltabrowser|AirSearch)(?:/(\d+[\.\d]+))?'
- regex: '(?:com\.airfind\.deltabrowser|AirSearch)(?:/(\d+[\.\d]+))?'
name: 'Delta Browser'
version: '$1'
engine:
Expand Down Expand Up @@ -1533,7 +1533,7 @@
- regex: 'QIHU 360[ES]E|QihooBrowserHD/(\d+[.\d]+)'
name: '360 Secure Browser'
version: '$1'
- regex: 'Chrome.+Safari/537.36/(\d+[.\d]+)$'
- regex: 'Chrome.+Safari/537\.36/(\d+[.\d]+)$'
name: '360 Secure Browser'
version: '$1'

Expand Down Expand Up @@ -2043,14 +2043,14 @@
default: 'Presto'
versions:
15: 'Blink'
- regex: '(?:Opera|OPR)[/ ](?:9.80.*Version/)?(\d+\.[\.\d]+) .*Edition Next'
- regex: '(?:Opera|OPR)[/ ](?:9\.80.*Version/)?(\d+\.[\.\d]+) .*Edition Next'
name: 'Opera Next'
version: '$1'
engine:
default: 'Presto'
versions:
15: 'Blink'
- regex: '(?:Opera[/ ]?|OPR[/ ])(?:9.80.*Version/)?(\d+[\.\d]+)'
- regex: '(?:Opera[/ ]?|OPR[/ ])(?:9\.80.*Version/)?(\d+[\.\d]+)'
name: 'Opera'
version: '$1'
engine:
Expand Down Expand Up @@ -2321,7 +2321,7 @@
- regex: '(?:SFB(?:rowser)?)/(\d+[\.\d]+)'
name: 'Super Fast Browser'
version: '$1'
- regex: 'com.browser.tssomas(?:/(\d+[\.\d]+))?'
- regex: 'com\.browser\.tssomas(?:/(\d+[\.\d]+))?'
name: 'Super Fast Browser'
version: '$1'

Expand Down Expand Up @@ -2501,7 +2501,7 @@
version: '$1'

#Openwave Mobile Browser
- regex: 'UP.Browser(?:/(\d+[\.\d]+))?'
- regex: 'UP\.Browser(?:/(\d+[\.\d]+))?'
name: 'Openwave Mobile Browser'
version: '$1'
- regex: 'Openwave(?:/(\d+[\.\d]+))?'
Expand Down Expand Up @@ -2909,22 +2909,22 @@
version: '$1'
engine:
default: 'Trident'
- regex: 'MSIE.*Trident/4.0'
- regex: 'MSIE.*Trident/4\.0'
name: 'Internet Explorer'
version: '8.0'
engine:
default: 'Trident'
- regex: 'MSIE.*Trident/5.0'
- regex: 'MSIE.*Trident/5\.0'
name: 'Internet Explorer'
version: '9.0'
engine:
default: 'Trident'
- regex: 'MSIE.*Trident/6.0'
- regex: 'MSIE.*Trident/6\.0'
name: 'Internet Explorer'
version: '10.0'
engine:
default: 'Trident'
- regex: 'Trident/[78].0'
- regex: 'Trident/[78]\.0'
name: 'Internet Explorer'
version: '11.0'
engine:
Expand Down
8 changes: 4 additions & 4 deletions regexes/client/libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
version: '$1'
url: 'https://hc.apache.org/httpclient-3.x'

- regex: 'WinHttp.WinHttpRequest.+([\.\d]+)'
- regex: 'WinHttp\.WinHttpRequest.+([\.\d]+)'
name: 'WinHttp WinHttpRequest'
version: '$1'

Expand Down Expand Up @@ -557,12 +557,12 @@
version: '$1'
url: 'https://bitbucket.org/mailchimp/mandrill-api-php/src/master/'

- regex: 'babashka.http-client(?:/(\d+[\.\d]+))?'
- regex: 'babashka\.http-client(?:/(\d+[\.\d]+))?'
name: 'Babashka HTTP Client'
version: '$1'
url: 'https://github.com/babashka/http-client'

- regex: 'http.rb(?:/(\d+[\.\d]+))?'
- regex: 'http\.rb(?:/(\d+[\.\d]+))?'
name: 'http.rb'
version: '$1'
url: 'https://github.com/httprb/http'
Expand All @@ -577,7 +577,7 @@
version: ''
url: 'https://www.cakephp.org/'

- regex: 'request.js'
- regex: 'request\.js'
name: 'request'
version: ''
url: 'https://github.com/request/request'
Expand Down
2 changes: 1 addition & 1 deletion regexes/client/mediaplayers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
version: '$1'

# Xtream Player (https://play.google.com/store/apps/details?id=com.devcoder.iptvxtreamplayer)
- regex: 'com.devcoder.iptvxtreamplayer'
- regex: 'com\.devcoder\.iptvxtreamplayer'
name: 'Xtream Player'
version: ''

Expand Down
Loading
Loading