diff --git a/lib/automation/google/search.js b/lib/automation/google/search.js index f017a17..68e9776 100644 --- a/lib/automation/google/search.js +++ b/lib/automation/google/search.js @@ -77,7 +77,7 @@ export default class GoogleSearch extends Google { #createRegExp ( target ) { if ( !target ) return; - if ( target.startsWith( "*." ) ) target = target.substring( 2 ); + if ( target.startsWith( "*." ) ) target = target.slice( 2 ); target = quoteMeta( target );