blun-king-cli 5.3.3 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blun-cli.js +2 -2
- package/package.json +1 -1
package/blun-cli.js
CHANGED
|
@@ -3065,8 +3065,8 @@ async function main() {
|
|
|
3065
3065
|
runHook("post", input.split(/\s+/)[0].slice(1));
|
|
3066
3066
|
} else {
|
|
3067
3067
|
// Browser intent — natural language with URL → local Playwright
|
|
3068
|
-
var urlMatch = input.match(/(https?:\/\/\S+)/i);
|
|
3069
|
-
var browserWords = /\b(öffne|open|schau|zeig|geh auf|navigate|browse|screenshot|bildschirmfoto|aufrufen|besuch|check|prüf|analysier)\b/i;
|
|
3068
|
+
var urlMatch = input.match(/(https?:\/\/\S+)/i) || input.match(/\b((?:www\.)?[a-zA-Z0-9-]+\.[a-z]{2,}(?:\/\S*)?)\b/i);
|
|
3069
|
+
var browserWords = /\b(öffne|open|schau|zeig|geh auf|gehen|navigate|browse|screenshot|bildschirmfoto|aufrufen|besuch|check|prüf|analysier)\b/i;
|
|
3070
3070
|
if (urlMatch && browserWords.test(input)) {
|
|
3071
3071
|
var browserUrl = urlMatch[1];
|
|
3072
3072
|
try {
|