looks like a bug in strEndsWith, it should I think be:-
exports.strEndsWith = function(str,ending,position) {
if(str.endsWith) {
return str.endsWith(ending,position);
} else {
if (typeof position !== 'number' || !isFinite(position) ||
Math.floor(position) !== position || position > str.length) {
position = str.length;
}
* position -= ending.length**;*
var lastIndex = str.indexOf(ending, position);
return lastIndex !== -1 && lastIndex === position;
}
};
all the best BJ
On Monday, July 25, 2016 at 3:45:04 PM UTC+1, Jeremy Ruston wrote:
>
> Hi Xavier
>
> Good to hear that things are working. Let's see if anyone else encounters
> the problem,
>
> Best wishes
>
> Jeremy
>
> --
> Jeremy Ruston
> [email protected] <javascript:>
> http://jermolene.com
>
> On 25 Jul 2016, at 15:41, Xavier Cazin <[email protected] <javascript:>>
> wrote:
>
> Jeremy,
>
> Bingo. Not sure whether it was a Linux or a NodeJS bug, but after I
> installed the 4.4.7 binaries found on the nodejs site
> https://nodejs.org/en/download/, it worked again as expected! Don't know
> what to do of this, but users of popular Ubuntu and Debian installations
> will probably see the bug if they use the default packages.
>
> Best,
>
> -- Xavier Cazin
>
> On Mon, Jul 25, 2016 at 4:03 PM, Xavier Cazin <[email protected]
> <javascript:>> wrote:
>
>> Hi Jeremy,
>>
>> I may have found something related to Linux vs MacOS nodejs versions:
>> https://github.com/nodejs/node-v0.x-archive/issues/685. I'm did my tests
>> on Debian Jessie, which is I believe the stable Debian, that ships with
>> v0.10.29 of nodejs :-(
>>
>> X.
>>
>> -- Xavier Cazin
>>
>> On Mon, Jul 25, 2016 at 3:22 PM, Jeremy Ruston <[email protected]
>> <javascript:>> wrote:
>>
>>> Hi Xavier
>>>
>>> That’s very strange. I’m not seeing the repeated file extension on my
>>> Mac. I’m wondering if it is somehow an OS difference? Can anyone else
>>> confirm the problem?
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>> On 25 Jul 2016, at 13:50, Xavier Cazin <[email protected] <javascript:>>
>>> wrote:
>>>
>>> Hello Jeremy,
>>>
>>> I believe the extraneous .tid extension still appears in server mode (at
>>> least in the npm version):
>>>
>>> xavier@hautbois:~$ mkdir /tmp/my-test && cd /tmp/my-test
>>> xavier@hautbois:/tmp/my-test$ which tiddlywiki
>>> /usr/local/bin/tiddlywiki
>>> xavier@hautbois:/tmp/my-test$
>>> xavier@hautbois:/tmp/my-test$ tiddlywiki --version
>>> 5.1.13
>>> xavier@hautbois:/tmp/my-test$ tiddlywiki . --init server
>>> Copied edition 'server' to .
>>> xavier@hautbois:/tmp/my-test$ tiddlywiki . --server 4242
>>> Serving on 127.0.0.1:4242
>>> (press ctrl-C to exit)
>>> syncer-server: Dispatching 'save' task: $:/StoryList
>>> FileSystem: Saved file /tmp/my-test/tiddlers/$__StoryList.tid.tid
>>> ^Cxavier@hautbois:/tmp/my-test$
>>>
>>> Regards,
>>> -- Xavier Cazin
>>>
>>> On Mon, Jul 25, 2016 at 12:20 PM, Jeremy Ruston <[email protected]
>>> <javascript:>> wrote:
>>>
>>>> I'm delighted to announce that TiddlyWiki version 5.1.13 has been
>>>> released to:
>>>>
>>>> http://tiddlywiki.com/
>>>>
>>>> Remember to keep careful backups before upgrading existing 5.x.x wikis
>>>> at:
>>>>
>>>> http://tiddlywiki.com/upgrade.html
>>>>
>>>> This is a minor bug fix release that mostly deals with issues
>>>> introduced in 5.1.12:
>>>>
>>>> * Fixed (and refixed) problematic stricter external link matching rules
>>>> introduced in 5.1.12
>>>> * Fixed problem with tiddlers titled "undefined"
>>>> * Fixed rendering problem with KaTeX Plugin
>>>> * Removed unneeded border in print stylesheet
>>>> * Fixed problem with extraneous .tid extension added to tiddler
>>>> filenames
>>>> * Updated Portuguese (Portugal) translation
>>>>
>>>> See the release note at http://tiddlywiki.com/#Release%205.1.13 for
>>>> more details.
>>>>
>>>> As usual, feedback and questions are gratefully received.
>>>>
>>>> Best wishes
>>>>
>>>> --
>>>> Jeremy Ruston
>>>> mailto:[email protected] <javascript:>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "TiddlyWiki" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected] <javascript:>.
>>>> To post to this group, send email to [email protected]
>>>> <javascript:>.
>>>> Visit this group at https://groups.google.com/group/tiddlywiki.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJaeAkcOTkU%2BUZU3%2BFLFwfuOQm1rK%2BQdGR-TQK378QiiTA%40mail.gmail.com
>>>>
>>>> <https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJaeAkcOTkU%2BUZU3%2BFLFwfuOQm1rK%2BQdGR-TQK378QiiTA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected] <javascript:>.
>>> To post to this group, send email to [email protected]
>>> <javascript:>.
>>> Visit this group at https://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/CADeSwYONdCv0A%3DYi9ZXdu%2B%2BBvFVzcY-CLtuUdHj6okG9zTHGng%40mail.gmail.com
>>>
>>> <https://groups.google.com/d/msgid/tiddlywiki/CADeSwYONdCv0A%3DYi9ZXdu%2B%2BBvFVzcY-CLtuUdHj6okG9zTHGng%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected] <javascript:>.
>>> To post to this group, send email to [email protected]
>>> <javascript:>.
>>> Visit this group at https://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/EB14D77D-579E-46E6-B1B2-2722184151B9%40gmail.com
>>>
>>> <https://groups.google.com/d/msgid/tiddlywiki/EB14D77D-579E-46E6-B1B2-2722184151B9%40gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]
> <javascript:>.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/CADeSwYNGzTkEHSgjP79o9tySFOahJ2FgyYLM6QXdyLtLx_YQqA%40mail.gmail.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/CADeSwYNGzTkEHSgjP79o9tySFOahJ2FgyYLM6QXdyLtLx_YQqA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/92950b18-0583-4426-a9b9-9e6c879060c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.