Fix dots in regex

This commit is contained in:
Yarmo Mackenbach 2020-11-04 22:25:45 +01:00
parent eba9d48af2
commit a9fc0e4b44
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
const reURI = /^https:\/\/gist.github.com\/(.*)\/(.*)\/?/ const reURI = /^https:\/\/gist\.github\.com\/(.*)\/(.*)\/?/
const processURI = (uri, opts) => { const processURI = (uri, opts) => {
if (!opts) { opts = {} } if (!opts) { opts = {} }

View file

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
const reURI = /^https:\/\/news.ycombinator.com\/user\?id=(.*)\/?/ const reURI = /^https:\/\/news\.ycombinator\.com\/user\?id=(.*)\/?/
const processURI = (uri, opts) => { const processURI = (uri, opts) => {
if (!opts) { opts = {} } if (!opts) { opts = {} }

View file

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
const reURI = /^https:\/\/lobste.rs\/u\/(.*)\/?/ const reURI = /^https:\/\/lobste\.rs\/u\/(.*)\/?/
const processURI = (uri, opts) => { const processURI = (uri, opts) => {
if (!opts) { opts = {} } if (!opts) { opts = {} }