Add superuser URL detection

This commit is contained in:
Yarmo Mackenbach 2022-10-07 10:20:02 +02:00
parent e0502c78bb
commit 802f8011dc
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -15,7 +15,7 @@ limitations under the License.
*/ */
const E = require('../enums') const E = require('../enums')
const reURI = /^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow)|.+\.stackexchange)\.com\/users\/(\d+)/ const reURI = /^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow|superuser)|.+\.stackexchange)\.com\/users\/(\d+)/
const reStackExchange = /\.stackexchange$/ const reStackExchange = /\.stackexchange$/
const processURI = (uri) => { const processURI = (uri) => {