From 9247e5af1691e2967fdd84f9657495b2513e551c Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Tue, 12 Nov 2019 22:44:22 +0100 Subject: [PATCH] update onigasm (fix php issue) --- package-lock.json | 6 +++--- package.json | 2 +- .../onigtests/fixtures/php-onigasm-issue17.php | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 test-cases/onigtests/fixtures/php-onigasm-issue17.php diff --git a/package-lock.json b/package-lock.json index 3a59823..e02b558 100644 --- a/package-lock.json +++ b/package-lock.json @@ -677,9 +677,9 @@ } }, "onigasm": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/onigasm/-/onigasm-2.2.2.tgz", - "integrity": "sha512-TQTMk+RmPYx4sGzNAgV0q7At7PABDNHVqZBlC4aRXHg8hpCdemLOF0qq0gUCjwUbc7mhJMBOo3XpTRYwyr45Gw==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/onigasm/-/onigasm-2.2.3.tgz", + "integrity": "sha512-y3Qg9q6g6CVjRWN9m95tmi1owzaIlRXkk65sANAq2kjjBjrW7rYH8zJO4YmCoa00igrhjRXMXeiTEfcf5K3z7A==", "dev": true, "requires": { "lru-cache": "^4.1.1" diff --git a/package.json b/package.json index a05a130..225f9d5 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@types/node": "^12.6.2", "durations": "^3.4.1", "mocha": "^6.1.4", - "onigasm": "^2.2.2", + "onigasm": "^2.2.3", "tslint": "^5.18.0", "typescript": "^3.5.3" } diff --git a/test-cases/onigtests/fixtures/php-onigasm-issue17.php b/test-cases/onigtests/fixtures/php-onigasm-issue17.php new file mode 100644 index 0000000..5102edc --- /dev/null +++ b/test-cases/onigtests/fixtures/php-onigasm-issue17.php @@ -0,0 +1,14 @@ + is the HTML equivalent to a new line. + $string = 'Hello World!
'; + + // You can echo the variable, similar to the way you would echo a string. + echo $string; + + // You could also use print. + print $string; + + // Or, if you are familiar with C, printf can be used too. + printf('%s', $string); +?> \ No newline at end of file