github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/md/cover.en.md (about)

     1  ### `cover()` {#fn-cover}
     2  
     3  Function prototype: `fn cover(key: str, range: list)`
     4  
     5  Function description: Perform data desensitization by range on the string data obtained on the specified field
     6  
     7  Function parameters:
     8  
     9  - `key`: Key name
    10  - `range`: The index range of the desensitized string (`[start,end]`) Both start and end support negative subscripts, which are used to express the semantics of tracing back from the end. The interval is reasonable. If end is greater than the maximum length of the string, it will default to the maximum length
    11  
    12  Example:
    13  
    14  ```python
    15  # input data {"str": "13789123014"}
    16  json(_, `str`)
    17  cover(`str`, [8, 9])
    18  
    19  # input data {"abc": "13789123014"}
    20  json(_, abc)
    21  cover(abc, [2, 4])
    22  ```