Browse Source

Add input begin and end regex markers to remove false positives

pull/46/head
coomdev 2 years ago
parent
commit
b122f8250c
  1. 2
      main.meta.js
  2. 4
      main.user.js
  3. 2
      src/thirdeye.ts

2
main.meta.js

@ -1,7 +1,7 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.62
// @version 0.63
// @description uhh
// @author You
// @match https://boards.4channel.org/*

4
main.user.js

@ -1,7 +1,7 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.62
// @version 0.63
// @description uhh
// @author You
// @match https://boards.4channel.org/*
@ -11386,7 +11386,7 @@
skip: true,
extract: extract4,
has_embed: has_embed4,
match: (fn) => !!fn.match(/[0-9a-fA-F]{32}\.....?/)
match: (fn) => !!fn.match(/^[0-9a-fA-F]{32}\.....?$/)
};
// src/App.svelte

2
src/thirdeye.ts

@ -134,5 +134,5 @@ export default {
skip: true,
extract,
has_embed,
match: fn => !!fn.match(/[0-9a-fA-F]{32}\.....?/)
match: fn => !!fn.match(/^[0-9a-fA-F]{32}\.....?$/)
} as ImageProcessor;
Loading…
Cancel
Save