Changes between Version 1 and Version 2 of Ticket #888


Ignore:
Timestamp:
01/16/08 21:45:19 (9 years ago)
Author:
dstillman
Comment:

Actually I guess it's a bit more difficult than checking if "part" is empty, since "[2000?]" parses to { year: 2000, part: undefined }... So parsed numbers might need to be rechecked in their original context to make sure there are no other characters.

Elena, are there other examples that you can think of that might fail at something like this?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #888

    • Property Summary changed from "is-date" should return "true" only if it's a date with nothing in "parts" to "is-date" should return "true" only if date parses cleanly
  • Ticket #888 – Description

    v1 v2  
    1 from an im with dan s.: 
    2 "is-date" should return "true" if it's a date with nothing in "parts", and fallback to the whole string otherwise.  
    3  
    41right now "is-date" seems to return "true" if the field can be parsed into a valid date (regardless of what else it contains), which leads to the following loss of data when moving from the Zotero date field to CSL: 
    52